package ch07;

import java.util.Scanner;

public class CashRegisterSimulator {

	public static void main(String[] args) {

		Scanner in = new Scanner(System.in);
		
		CashRegister register = new CashRegister();
		
		System.out.print("Enter price: ");
		double price = in.nextDouble();
		register.recordPurchase(price);
		
		System.out.print("Enter dollars: ");
		int dollars = in.nextInt();
		System.out.print("Enter quaters: ");
		int quaters = in.nextInt();
		System.out.print("Enter dimes: ");
		int dimes = in.nextInt();
		System.out.print("Enter nickels: ");
		int nickels = in.nextInt();
		System.out.print("Enter pennies: ");
		int pennies = in.nextInt();
		register.enterPayment(dollars, quaters, dimes, nickels, pennies);
		
		System.out.print("Your change: ");
		System.out.print(register.giveChange());
		

	}

}
